package com.zzxy.spring5.controller;

import com.zzxy.spring5.service.TeacherServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class TeacherController {
    @Autowired
    public TeacherServiceImpl teacherService;

   /* public TeacherServiceImpl getTeacherService() {
        return teacherService;
    }

    public void setTeacherService(TeacherServiceImpl teacherService) {
        this.teacherService = teacherService;
    }*/

    public void register(String username, String password){
        teacherService.register(username,password);

    }
}
